(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/dici.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'd581c8ikGdKc7MNzcyoKoVc', 'dici', __filename);
// Script/dici.js

'use strict';

cc.Class({
    extends: cc.Component,

    properties: {

        DieAudio: {
            default: null,
            type: cc.AudioClip
        }
    },

    //    用户自定义函数
    //监听是否撞击了
    onCollisionEnter: function onCollisionEnter(other, self) {
        console.log('碰到了');
        cc.audioEngine.play(this.DieAudio, false, 0.8);
        cc.systemEvent.emit("XiaohuiDici", '');
        cc.director.loadScene("OverScene");
    },

    onLoad: function onLoad() {},

    start: function start() {
        var manager = cc.director.getCollisionManager();
        manager.enabled = true;
        // manager.enabledDebugDraw = true;
    }

});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=dici.js.map
        